import { exInputNumber, exSelect } from '@ve/common/components/extension'
import { exInput } from '../../extension/index'

export default {
  VERSION: '20220408',
  type: 'uiRadioGroup',
  name: '单选框',
  icon: 'record-circle-line',
  //数据别名
  // dataName: 'uiFlexbox_data',
  //扩展
  extension: {
    boxHeight: exInputNumber('高度', 50, 1, 500),
    posi: exSelect('内容位置', 'flex-start', [
      {
        label: '左',
        value: 'flex-start',
      },
      {
        label: '中',
        value: 'center',
      },
      {
        label: '右',
        value: 'flex-end',
      },
    ]),
    space: {
      type: 'exInputNumber',
      name: '间距',
      value: 1,
      min: 0,
      max: 12,
    },
    topMargin: {
      type: 'exInputNumber',
      name: '上外边距',
      value: 0,
    },
    rightMargin: {
      type: 'exInputNumber',
      name: '右外边距',
      value: 0,
    },
    bottomMargin: {
      type: 'exInputNumber',
      name: '下外边距',
      value: 0,
    },
    leftMargin: {
      type: 'exInputNumber',
      name: '左外边距',
      value: 0,
    },
    defaultValue: exInput('默认值', '1'),
    radioList: {
      type: 'exRadioSet',
      name: 'radio项配置',
      value: [
        {
          name: '一周',
          value: '1',
        },
        {
          name: '二周',
          value: '2',
        },
        {
          name: '三周',
          value: '3',
        },
      ],
    },
    color: {
      type: 'exSetChartColor',
      name: '风格颜色',
      value: '#5cdbd9',
    },
    width: exInput('radio宽度', 50),
    height: exInput('radio高度', 30),
    fontSize: {
      type: 'exInputNumber',
      name: '字体大小',
      value: 12,
    },
    bradius: {
      type: 'exInputNumber',
      name: '圆角大小',
      value: 5,
    },
    lineWeight: {
      type: 'exInputNumber',
      name: '线条粗细',
      value: 2,
    },
    lunWeight: {
      type: 'exInputNumber',
      name: '轮胎高度',
      value: 5,
    },
    leftPosi: {
      type: 'exInputNumber',
      name: '左距离',
      value: 8,
    },
    rightPosi: {
      type: 'exInputNumber',
      name: '右距离',
      value: 8,
    },
  },
  list: [],
  interaction: [],
}
